package com.yfqy.app.modules.wechat.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "wechat.pay")
public class WechatPayConfig {
    /**
     * 商户号
     */
    private String mchId;
    /**
     * 应用ID
     */
    private String appId;
    /**
     * 商户密钥
     */
    private String apiKey;
    // 统一下单接口
    private String unifiedOrderUrl;
    /**
     * 支付回调地址
     */
    private String notifyUrl;
    // 订单查询接口
    private String orderQueryUrl;
    // 订单退款接口
    private String refundUrl;
    // 退款回调
    private String refundNotifyUrl;
    // 退款查询接口
    private String refundQueryUrl;

    // 微信支付安全证书path
    private String wechatpayCertPath;
}
